package cn.edu.scau.cmi.xuminbang.singleton;

public class Marshal {
	private static Marshal instance;
	private static String nameOfMarshal;
	private Marshal (String name) {
		Marshal.nameOfMarshal = name;
	}
	public static Marshal getInstance(String name) {
		if(!name.equals(null)) {
			instance = new Marshal(name); 
		}
			return instance;
	}
	public static String getName() {
		return nameOfMarshal;
	}

}
